package jpa.entitys.promis.common;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the COST_BUILDING_PHASE database table.
 * 
 */
@Entity
@Table(name="COST_BUILDING_PHASE")
@NamedQueries({
    @NamedQuery(name = "CostBuildingPhase.findAll", query = " SELECT c FROM CostBuildingPhase c "),
    @NamedQuery(name = "CostBuildingPhase.findById", query = " SELECT c FROM CostBuildingPhase c WHERE c.id = :Id ")
})
public class CostBuildingPhase extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private CostBuildingPhasePK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="ALPHABET_TYPE", length=1)
	private String alphabetType;

	@Column(length=30)
	private String appointee;

	@Column(name="BUILDING_AREA", precision=16, scale=2)
	private BigDecimal buildingArea;

	@Column(name="BUILDING_COMMON_AREA", precision=16, scale=2)
	private BigDecimal buildingCommonArea;

	@Column(name="BUILDING_LAND_AREA", length=300)
	private String buildingLandArea;

	@Column(name="CONDOMINIUM_REGISTRATION_NO", length=300)
	private String condominiumRegistrationNo;

	@Column(name="CREATED_BY", length=30)
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(length=300)
	private String description;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="EIA_DATE")
	private Date eiaDate;

	@Column(name="EIA_NUMBER", length=100)
	private String eiaNumber;

	@Column(name="GEN_ALPHABET")
	private String genAlphabet;

	@Column(name="GEN_DESCRIPTION", length=300)
	private String genDescription;

	@Column(name="GEN_FORMAT", length=30)
	private String genFormat;

	@Column(name="GEN_INCLUDE_PHASE", length=300)
	private String genIncludePhase;

	@Column(name="GEN_NUMBER", precision=22)
	private BigDecimal genNumber;

	@Column(name="GEN_PREFIX", length=30)
	private String genPrefix;

	@Column(name="GEN_SUFFIX", length=30)
	private String genSuffix;

	@Column(name="GENERATE_TYPE", length=1)
	private String generateType;

	@Column(name="JURISTIC_PERSON_NAME", length=300)
	private String juristicPersonName;

	@Column(name="LAND_OFFICE_ID", length=30)
	private String landOfficeId;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="NO_OF_FLOOR_ZONE", precision=22)
	private BigDecimal noOfFloorZone;

	@Column(name="PHASE_CODE", length=30)
	private String phaseCode;

	@Column(name="PRICE_SQM", precision=16, scale=2)
	private BigDecimal priceSqm;

	@Column(name="PROPERTY_TYPE_CODE", length=30)
	private String propertyTypeCode;

	@Column(name="SEQ_NO", precision=22)
	private BigDecimal seqNo;

	@Column(name="TITLE_DEED_NO", length=300)
	private String titleDeedNo;

	@Column(name="TOTAL_BUILDING_AREA", precision=22)
	private BigDecimal totalBuildingArea;

	@Column(name="TOTAL_COST", precision=22)
	private BigDecimal totalCost;

	@Column(name="TOTAL_LABOUR", precision=22)
	private BigDecimal totalLabour;

	@Column(name="TOTAL_MATERIAL", precision=22)
	private BigDecimal totalMaterial;

	@Column(name="TOTAL_SALE_PRICE", precision=22)
	private BigDecimal totalSalePrice;

    public CostBuildingPhase() {
    }

	public CostBuildingPhasePK getId() {
		return this.id;
	}

	public void setId(CostBuildingPhasePK id) {
		this.id = id;
	}
	
	public String getAlphabetType() {
		return this.alphabetType;
	}

	public void setAlphabetType(String alphabetType) {
		this.alphabetType = alphabetType;
	}

	public String getAppointee() {
		return this.appointee;
	}

	public void setAppointee(String appointee) {
		this.appointee = appointee;
	}

	public BigDecimal getBuildingArea() {
		return this.buildingArea;
	}

	public void setBuildingArea(BigDecimal buildingArea) {
		this.buildingArea = buildingArea;
	}

	public BigDecimal getBuildingCommonArea() {
		return this.buildingCommonArea;
	}

	public void setBuildingCommonArea(BigDecimal buildingCommonArea) {
		this.buildingCommonArea = buildingCommonArea;
	}

	public String getBuildingLandArea() {
		return this.buildingLandArea;
	}

	public void setBuildingLandArea(String buildingLandArea) {
		this.buildingLandArea = buildingLandArea;
	}

	public String getCondominiumRegistrationNo() {
		return this.condominiumRegistrationNo;
	}

	public void setCondominiumRegistrationNo(String condominiumRegistrationNo) {
		this.condominiumRegistrationNo = condominiumRegistrationNo;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getEiaDate() {
		return this.eiaDate;
	}

	public void setEiaDate(Date eiaDate) {
		this.eiaDate = eiaDate;
	}

	public String getEiaNumber() {
		return this.eiaNumber;
	}

	public void setEiaNumber(String eiaNumber) {
		this.eiaNumber = eiaNumber;
	}

	public String getGenAlphabet() {
		return this.genAlphabet;
	}

	public void setGenAlphabet(String genAlphabet) {
		this.genAlphabet = genAlphabet;
	}

	public String getGenDescription() {
		return this.genDescription;
	}

	public void setGenDescription(String genDescription) {
		this.genDescription = genDescription;
	}

	public String getGenFormat() {
		return this.genFormat;
	}

	public void setGenFormat(String genFormat) {
		this.genFormat = genFormat;
	}

	public String getGenIncludePhase() {
		return this.genIncludePhase;
	}

	public void setGenIncludePhase(String genIncludePhase) {
		this.genIncludePhase = genIncludePhase;
	}

	public BigDecimal getGenNumber() {
		return this.genNumber;
	}

	public void setGenNumber(BigDecimal genNumber) {
		this.genNumber = genNumber;
	}

	public String getGenPrefix() {
		return this.genPrefix;
	}

	public void setGenPrefix(String genPrefix) {
		this.genPrefix = genPrefix;
	}

	public String getGenSuffix() {
		return this.genSuffix;
	}

	public void setGenSuffix(String genSuffix) {
		this.genSuffix = genSuffix;
	}

	public String getGenerateType() {
		return this.generateType;
	}

	public void setGenerateType(String generateType) {
		this.generateType = generateType;
	}

	public String getJuristicPersonName() {
		return this.juristicPersonName;
	}

	public void setJuristicPersonName(String juristicPersonName) {
		this.juristicPersonName = juristicPersonName;
	}

	public String getLandOfficeId() {
		return this.landOfficeId;
	}

	public void setLandOfficeId(String landOfficeId) {
		this.landOfficeId = landOfficeId;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public BigDecimal getNoOfFloorZone() {
		return this.noOfFloorZone;
	}

	public void setNoOfFloorZone(BigDecimal noOfFloorZone) {
		this.noOfFloorZone = noOfFloorZone;
	}

	public String getPhaseCode() {
		return this.phaseCode;
	}

	public void setPhaseCode(String phaseCode) {
		this.phaseCode = phaseCode;
	}

	public BigDecimal getPriceSqm() {
		return this.priceSqm;
	}

	public void setPriceSqm(BigDecimal priceSqm) {
		this.priceSqm = priceSqm;
	}

	public String getPropertyTypeCode() {
		return this.propertyTypeCode;
	}

	public void setPropertyTypeCode(String propertyTypeCode) {
		this.propertyTypeCode = propertyTypeCode;
	}

	public BigDecimal getSeqNo() {
		return this.seqNo;
	}

	public void setSeqNo(BigDecimal seqNo) {
		this.seqNo = seqNo;
	}

	public String getTitleDeedNo() {
		return this.titleDeedNo;
	}

	public void setTitleDeedNo(String titleDeedNo) {
		this.titleDeedNo = titleDeedNo;
	}

	public BigDecimal getTotalBuildingArea() {
		return this.totalBuildingArea;
	}

	public void setTotalBuildingArea(BigDecimal totalBuildingArea) {
		this.totalBuildingArea = totalBuildingArea;
	}

	public BigDecimal getTotalCost() {
		return this.totalCost;
	}

	public void setTotalCost(BigDecimal totalCost) {
		this.totalCost = totalCost;
	}

	public BigDecimal getTotalLabour() {
		return this.totalLabour;
	}

	public void setTotalLabour(BigDecimal totalLabour) {
		this.totalLabour = totalLabour;
	}

	public BigDecimal getTotalMaterial() {
		return this.totalMaterial;
	}

	public void setTotalMaterial(BigDecimal totalMaterial) {
		this.totalMaterial = totalMaterial;
	}

	public BigDecimal getTotalSalePrice() {
		return this.totalSalePrice;
	}

	public void setTotalSalePrice(BigDecimal totalSalePrice) {
		this.totalSalePrice = totalSalePrice;
	}

}